<div id="ContentGroup">
    <div class="count-header">
        <a>系统配置项添加</a>
    </div>
    <div class="count-content-group">
        <div class="count-content">
            <form  id="XTPZX_Insert" data-role="form" data-event="finish" data-type="post" data-url="<{'XTPZX_Insert_Action'|U}>">
                <input type="hidden" id="XTPZX_PZM_ORA"  name="XTPZX_PZM_ORA" value="<{"this is a param"|security_encript}>" />
                <div class="count-content-title">系统配置项</div>
                <div class="count-content-type"><{*此处添加全局注释*}></div>
                <div class="form-list-item">
                    <label class="form-list-item-label"><span style="color: red">*</span>配置名</label>
                    <input type="text" id="XTPZX_PZM" name="XTPZX_PZM" value="<{$Model->XTPZX_PZM }>"/>
                    <p class="form-list-item-tip">本数据由开发人员填写</p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label">配置值</label>
                    <input type="text" id="XTPZX_PZZ" name="XTPZX_PZZ" value="<{$Model->XTPZX_PZZ }>"/>
                    <p class="form-list-item-tip"></p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label">说明</label>
                    <input type="text" id="XTPZX_SM" name="XTPZX_SM" value="<{$Model->XTPZX_SM }>"/>
                    <p class="form-list-item-tip">相关参数说明</p>
                </div>
                <div class="form-list-item">
                    <label class="form-list-item-label">附件</label>
                    <input type="text" id="XTPZX_FJ"  name="XTPZX_FJ"  value="<{$Model->XTPZX_FJ}>" />
                    <span id="XTPZX_FJUpload" class="button">文件上传</span>
                    <p class="form-list-item-tip"></p>
                </div>
            </form>     
            <div class="form-operation">
                <span class="button" id="XTPZX_Insert-Submit">提交</span>
                <span class="button" data-role="back">返回</span>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {
        $("#ContentGroup").formset(0);//开启页面标签页
        //$("#XTPZX_Insert").vtip();//开启鼠标提示.
        
        //客户端验证脚本
        $("#XTPZX_Insert").validate({
            rules:{
                "XTPZX_PZM":{
                    "maxbytelength":50 ,
                    "required":true 
                }, 
                "XTPZX_PZZ":{
                    "maxbytelength":500 
                }, 
                "XTPZX_SM":{
                    "maxbytelength":500 
                }, 
                "XTPZX_FJ":{
                    "maxbytelength":500 
                }, 
                "example":{} //可继续追加jquery validate客户端验证条件
            },
            "errorClass": "form-list-item-warn",
            //errorPlacement: function (error, element) {element.attr("data-tips", error.text());},//关闭默认提示，使用鼠标提示框时使用
            submitHandler: function () {
                $("#XTPZX_Insert").trigger("finish");
            }
        });
    
        $("#XTPZX_FJUpload").click(function () {
            $.fileUpload("XTPZX_FJ", $("#XTPZX_FJ").val(), function (data) {
                $("#XTPZX_FJ").val(data);
            });
        });
        $("#XTPZX_PZM").attr("data-tip","本数据由开发人员填写");
        $("#XTPZX_SM").attr("data-tip","相关参数说明");
        $("#XTPZX_Insert-Submit").click(function () {
            $("#XTPZX_Insert").submit();
        });
    });
</script>
